﻿<?xml version="1.0"?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Blazing.BusinessObjects" namespace="Blazing.BusinessObjects.Cms" >
  <class name="UrlRedirect" table="urlredirects" dynamic-insert="true" dynamic-update="true">

    <id name="ID" column="urlredirectid" type="Int32">
      <generator class="native" />
    </id>
    <timestamp column="rowstamp" name="RowStamp" />

    <property name="MatchPattern" length="400" />
    <property name="DestinationResult" length="400" />
    <property name="RedirectStatusCode" type="Int32" />
    <property name="Order" column="redirectorder" type="Int32" />
    <property name="IsRewrite" column="rewrite" type="Boolean" />
    <property name="IsActive" column="active" type="Boolean" />
    <property name="IsHostAppendedAsQueryParam" column="appendhostasqueryparam" type="Boolean" />
    <many-to-one name="Site" column="siteid" class="Site" not-null="true" />

  </class>
</hibernate-mapping>
